package com.qm.finger;

/**
 * create by tian
 * 2020-08-28
 * des:
 */
public enum FingerFun {
    KEY_HEAD("钥匙卡扣包头", (byte) 0x5A),
    FINGER_HEAD("光学指纹仪",(byte)0xF5),
    MODIFY_SERIAL_NUM("修改序列号",(byte)0x08),
    CANCEL_SERIAL_NUM("取消內部序列号",(byte)0x2A),
    DORMANT("让内部模块处于休眠状态",(byte)0x2C),
    SET_READ_MODEL("设置读取指纹模式",(byte)0x2D),
    ADD_FINGER_FIRST("采集指纹-1",(byte)0x01),
    ADD_FINGER_SECOND("采集指纹-2",(byte)0x02),
    ADD_FINGER_THIRD("采集指纹-3",(byte)0x03),
    ADD_UP_FINGER("添加用户并将特征值上传",(byte)0x06),
    DELETE_USER_BY_ID("刪除指定用戶", (byte) 0x04),
    DELETE_ALL_USER("刪除所有用戶", (byte) 0x05),
    COMPARE1_1("1:1比对", (byte) 0x0B),
    COMPARE1_N("1:N比对", (byte) 0x0C),
    GET_USER_ROLE("获取用户权限", (byte) 0x0A),
    COLLECT_IMAGE_EXTRACT_FEATURE("采集图像并提取特征值上传", (byte) 0x23),
    COLLECT_IMAGE("采集图像，显示成Bitmap",(byte)0x24),
    REGISTER_FINGER("存入对应的用户特征值到指纹器里", (byte) 0x41),
    GET_USER_NUM("获取用户总数", (byte) 0x09);


    private String name;
    private byte code;

    FingerFun(String name, byte value) {
        this.name = name;
        this.code = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public byte getCode() {
        return code;
    }

    public void setCode(byte code) {
        this.code = code;
    }
}
